<h1>Address List</h1>

<table class='sortable' id='sortable'>
  <thead>
    <tr>
      <th>Id</th>
      <th>Unit no</th>
      <th>Building name</th>
      <th>Building house</th>
      <th>Street</th>
      <th>Village subdivision</th>
      <th>Barangay</th>
      <th>City</th>
      <th>Zip code</th>
      <th>Type</th>
      <th>Country</th>
      <th>Person</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($address_list as $address): ?>
    <tr>
      <td><a href="<?php echo url_for('address/show?id='.$address['id']) ?>"><?php echo $address->getid() ?></a></td>
      <td><?php echo $address->getunit_no() ?></td>
      <td><?php echo $address->getbuilding_name() ?></td>
      <td><?php echo $address->getbuilding_house() ?></td>
      <td><?php echo $address->getstreet() ?></td>
      <td><?php echo $address->getvillage_subdivision() ?></td>
      <td><?php echo $address->getbarangay() ?></td>
      <td><?php echo $address->getcity() ?></td>
      <td><?php echo $address->getzip_code() ?></td>
      <td><?php echo $address->gettype() ?></td>
      <td><?php echo $address->getcountry() ?></td>
      <td><?php echo $address->getperson_id() ?></td>
      <td><?php echo $address->getcreated_at() ?></td>
      <td><?php echo $address->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('address/new') ?>">New</a>
